package com.xjy.spring.thrift.config;

import java.io.Serializable;

/**
 * server最基础的配置
 *
 * @author xujieyang
 */
public class BaseServerConfig implements Serializable {
    // 发布service的host
    protected String host;
    // 发布service的端口号
    protected Integer port;

    public BaseServerConfig() {
    }

    public BaseServerConfig(String host, Integer port) {
        this.host = host;
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "BaseServerConfig{" +
                "host='" + host + '\'' +
                ", port=" + port +
                '}';
    }


}
